/*
 * @Author: szx
 * @Date: 2021-11-13 10:12:24
 * @LastEditTime: 2021-11-13 11:26:47
 * @Description:
 * @FilePath: \leetcode\500-599\520\520.go
 */
package main

import "unicode"

func detectCapitalUse(word string) bool {
	if len(word) >= 2 && unicode.IsLower(rune(word[0])) && unicode.IsUpper(rune(word[1])) {
		return false
	}
	for i := 2; i < len(word); i++ {
		if unicode.IsLower(rune(word[i])) != unicode.IsLower(rune(word[1])) {
			return false
		}
	}
	return true
}

func main() {

}
